mysql -u root -p$MYSQL_ROOT_PASSWORD <<EOSQL
install plugin rpl_semi_sync_slave soname 'semisync_slave.so';
SET GLOBAL rpl_semi_sync_slave_enabled=1;
EOSQL